<template>
	<view class="article-box">
		<view class="article-box-list" @tap="tpaInfo(item)" v-for="item in list" :class="item.status === 1 ? 'status-unfinish' : item.status === 4 ? 'status-finish' : 'status-doing'">
			<view class="left left-img" v-if="item.img != '' " >
			  <image class="img" :src="item.img" mode="aspectFit"></image>
			</view>
			<view>
			  <view class="title">
			    {{item.title}}
			  </view>
			  <view class="c-999 pt-24">
			    <view class="f-28 right">状态：<text class="text-status">{{ item.status === 1 ? '认领成功' : item.status === 2 ? '审核中' : '认领失败' }}</text></view>
			    <view class="f-28 left">时间：2015-15-15</view>
			  </view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	components: {
	},
	data() {
		return {
			list:[
				 {
					"img": "../../static/banner-01.jpg",
					"title": "成都市锦江区东城拐下街8号5栋3单元1层1号住宅",
					"address": "如果需要打包成iOS 或者Android 原生项目需要集成原生插件",
					"area": 365.3,
					"url": "/pages/product/info",
					"presentMoney": 9876543210.65,
					"unit":"元",
					"type":"商铺"	,
					"status":1				
				 },
				 {
					"img": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fs1.xchuxing.com%2Fxchuxing%2Fforum%2F201607%2F27%2F185524zj7wog6qizk9o90k.jpg&refer=http%3A%2F%2Fs1.xchuxing.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1619914861&t=4c64a4a5cec709f9d03507b793546646",
					"title": "包月低至9.9元",
					"address": "原生项目需要集成原生插件",
					"area": 365.3,
					"url": "/pages/product/info",
					"presentMoney": 210.65,
					"unit":"万元",
					"type":"商铺"	,
					"status":2
				 },
				 {
					"img": "",
					"title": "包月低至9.9元",
					"address": "原生项目需要集成原生插件",
					"area": 365.3,
					"url": "/pages/product/info",
					"presentMoney": 210.65,
					"unit":"万元",
					"type":"商铺"	,
					"status":4
				 }
			]
		}
	},
	methods: {
		tpaInfo(item){
			uni.navigateTo({
				url: '/pages/project/info?status='+item.status+'&name='+item.title
			})
		},
		btnAdd(){
			uni.navigateTo({
				url: '/pages/project/write'
			})
		}
	}
}
</script>

<style>
</style>
